Hello and welcome. Are you ready to build your
own model-driven app? You might be wondering if you'll be able to build your own app. To put your mind to rest, creating a model-driven app
consists of six simple steps. Let's create a model-driven
app by using one of the standard entities that is available in your Microsoft
Power Apps environment. First, go to make.powerapps.com and sign in with your
organizational account. On the Power Apps homepage, in the Start from options,
select Blank app. Then choose Blank app
based on Dataverse, which is the
model-driven app option , and click "Create." Now, from the Select a
creating experience options, select Classic app designer
and click "Create." On the Create a New App page, enter a name and
description for the app. Finally, to save your settings and create the app,
simply click "Done." Your new app will now
appear in the App Designer, and you can start constructing your app by adding
components to it. Let's take a closer
look at how to do this. In the App Designer window, to open the Sitemap Designer, click the "Edit" icon on the sitemap widget on the gray workspace
area of the screen. In the Sitemap Designer, from the list of area
components, select New Subarea. Then in the subarea
properties pane on the right, update the following properties. From the Type drop-down
menu, select Entity, and from the Entity
drop-down menu, select Account, which is one of the standard Microsoft
out-of-the-box tables. Now click "Save
and close" to save your changes and close
the Sitemap Designer. Back in the App Designer, we're now going to add a form. Forms provide the
user interface to your app that people will use
to interact with the data. Select the forms widget
in the workspace area. You will now see
all available forms in the components
pane on the right. Mark only the Account
form checkbox, which is first in the list. Your next step will be to
add some views to your app. Model-driven apps use views
to define how a list of rows for a specific table is displayed in the application. Different views can be created
for different types of users and different types
of user requirements. In the workspace area
of App Designer, select the Views widget. The available views will be visible in the components
pane on the right. Views are displayed based on
the table that you applied. For example, you previously selected account as
the entity type. Only views that are related to the account table are displayed. Click to deselect
the All checkbox. When you do this,
the first option in the Public Views list, Accounts: Influence Deals
automatically become selected. This is because
there must always be at least one view
applied to a table. Let's apply some different
views to our account table. Click to select Active Accounts, All Accounts, and
My Active Accounts. You can now deselect
Accounts: Influenced Deals. Next, let's add some chart
visuals to your app. Select the Charts widget in the workspace area
of App Designer. In the components pane, click to deselect
the All checkbox. The Accounts by
Industry chart is now automatically selected,
which is the one you want. You now have a good selection of components added to your app. Finally, click
"Save and Close" to save all the changes to your
app and close App Designer. This simply saves
the app and does not publish or
validate your app. You'll be returned to the
main Power Apps homepage. If you go to Apps and
navigation menu on the left, you will see your new app
available in the list of apps. You've added some
components to your app. But what if you want
to add more components or edit existing ones? It is possible to
make changes from the app list or from
within the App Designer. Lets take a look at this process by adding a new
form to your app. On the Power Apps homepage, expand the Dataverse menu in the navigation pane on the
left and select Tables. In the Tables page, you'll see a list of the
available table entity types. At the top of the
list is account, which is the table entity
that our app is based on. Click "Account" to open the details page for
the account table type. Go to the Forms tab to see all available forms
for this table. You can also add, edit, deactivate, and
change form settings from the ribbon
options at the top. Click "Account"
in the Forms list to open the forms editing page. You can also access
the same form editing page from the
App Designer screen. Select Apps from the navigation
menu on the left then locate the app you've just created and click
"More commands". Click "Edit" to return to
the App Designer screen. Select Forms, and then click "Create New" on the
components pane on the right. Then select Main Form
from the drop-down menu. The form editing page will open. In the Properties
pane on the right, enter a name for the form
in the Display Name field. The navigation pane
on the left provides a menu of different tools
for configuring a form. The Tree view pane
will enable you to configure the different
sections of the form. For example, header,
summary, or photo sections. The table columns pane enables you to add a new field to
a section on the form. When you are happy with the
configuration of your form, click "Save" then click "Close" to exit the
form editing window. Back in the App Designer, the number of forms hasn't
changed for this widget. However, if you look at the list and the components pane, you will see that
your new form is visible and when checked it will be applied to the associated
entity. Not too tricky. Now, what if you wanted to
add a new view to your app? Let's take a look at how to
do this in App Designer. In the App Designer homepage, click "Views" to open the
views components pane. To apply another
view to an entity, simply mark the
checkbox for that view. To create a new view, click on "Create New" to go
to the view designer screen. First, you'll need to provide a name and
description for the view. Notice that this view already contains one column
of information. If you want to add more
columns or use other tools, you can use the common
tasks panel on the right. Select column entry,
and then click and drag the account number and city
headings into the view. You can also click and drag column headings to
rearrange them. Click "Save and Close." Select your new view from the components pane to
add it to the entity. The number of views
for the account entity should now be five. Finally, click
"Save" rather than Save an Close to remain on
the App Designer screen. Good job. You're
ready to publish your app? Let's get to it then. Now that you've
added and customized the components that you want, it's time to see how the
app would look to a user. On the App Designer
toolbar, select, Publish. Once the app has been published, it is ready for you to
run or share with others. Click "Play" to
see the app data. If the chart is not visible, select Show Chart on the command ribbon at
the top of the page. Notice the drop-down menu
of views where you can select a particular view of
the data that you require. For example, all accounts
are Accounts by Industry. Your app is now ready
to share with others. Well done on completing
this lesson. Looking forward
to seeing the app that you're about to
design and publish.